package com.xiaoxin.datinghubback.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

@Api(tags = "示例接口")
@RestController
@RequestMapping("/api/demo")
public class DemoController {

    @ApiOperation("示例GET接口")
    @GetMapping("/test")
    public String test(@ApiParam(value = "名称", required = true) @RequestParam String name) {
        return "Hello, " + name;
    }
} 